package com.zeh.billing.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zeh.billing.config.CommonResult;
import com.zeh.billing.entity.Cmoney;
import com.zeh.billing.entity.CmoneyVo;
import com.zeh.billing.entity.SearchDo;
import com.zeh.billing.service.CmoneyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zeh
 * @since 2021-08-26
 */
@RestController
@RequestMapping("/billing/cmoney")
@CrossOrigin
@Api(tags = "个人消费 接口")
public class CmoneyController {

    @Autowired
    private CmoneyService cmoneyService;

    @GetMapping("/searchMoney")
    @ApiOperation("个人消费查询")
    public CommonResult searchMoney(SearchDo searchDo){
        IPage<CmoneyVo> cmonies = cmoneyService.searchMoney(searchDo);
            return CommonResult.success(cmonies);
    }

}

